/**
 * Copyright 2007-2008. Chongqing First Information & Network Co., Ltd. All
 * rights reserved. <a>http://www.cqfirst.com.cn</a>
 */
package com.cqcis.uip.base.framework.common;

/**
 * 接口日志
 * 
 * @author huangmy
 * @date 2007-12-21
 */
public class InterfaceLog {
	private String recordId;  // 日志记录号	
	private String interfaceId; // 接口ID
	private String sendTime; // 发送时间
	private String recvTime; // 接收时间
	private String sendRecord; // 发送数据路径
	private String recvRecord; // 接收数据路径
	private boolean saved; // 已经保存

	public InterfaceLog(String intfSeq, String interfaceId) {
		this.recordId = intfSeq;
		this.interfaceId = interfaceId;
	}

	public String getRecordId() {
		return recordId;
	}

	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}

	public String getInterfaceId() {
		return interfaceId;
	}

	public void setInterfaceId(String interfaceId) {
		this.interfaceId = interfaceId;
	}

	public String getSendTime() {
		return sendTime;
	}

	public void setSendTime(String sendTime) {
		this.sendTime = sendTime;
	}

	public String getRecvTime() {
		return recvTime;
	}

	public void setRecvTime(String recvTime) {
		this.recvTime = recvTime;
	}

	public String getSendRecord() {
		return sendRecord;
	}

	public void setSendRecord(String sendRecord) {
		this.sendRecord = sendRecord;
	}

	public String getRecvRecord() {
		return recvRecord;
	}

	public void setRecvRecord(String recvRecord) {
		this.recvRecord = recvRecord;
	}

	@Override
	public String toString() {
		StringBuffer buffer = new StringBuffer();
		buffer.append("{").append("recordId=").append(recordId)
		                  .append(", interfaceId=").append(interfaceId)
		                  .append(", sendtime=").append(sendTime)
		                  .append(", recvtime=").append(recvTime)
		                  .append(", sendrecord=").append(sendRecord)
		                  .append(", recvrecord=").append(recvRecord)
		                  .append(", saved=").append(saved)
		                  .append("}\n");
		return buffer.toString();
	}

	public boolean isSaved() {
		return saved;
	}

	public void setSaved(boolean saved) {
		this.saved = saved;
	}
}
